package demoFactoryProxy;

import java.util.Scanner;

public class NormalUser extends User{

    private static Scanner scanner = new Scanner(System.in);
    public NormalUser(String name, int age){
        super(name,age);
    }

    public void borrowedBook(String bookName){
        System.out.println("普通用户：" + name + "借了" + bookName);
    }
    @Override
    public int menu() {
        System.out.println("普通⽤⼾ " + name + " 的操作菜单:");
        System.out.println("1. 查找图书");
        System.out.println("2. 打印所有的图书");
        System.out.println("3. 退出系统");
        System.out.println("4. 借阅图书");
        System.out.println("5. 归还图书");
        System.out.println("6. 查看当前个⼈借阅情况");
        System.out.println("请选择你的操作：");
        return scanner.nextInt();

    }
}
